package com.mysoft.gfyx.marketdevelop.service.dto;

import lombok.Data;

import java.util.*;

@Data
public class CommonGraphDto {

    public CommonGraphDto() {
        nodeId = UUID.randomUUID().toString();
    }

    private String nodeId;

    private String id;

    private String title;

    private CompanyData company;

    private CompanyData topCompany;

    @Data
    public static class CompanyData {

        public CompanyData() {
            nodeId = UUID.randomUUID().toString();
        }

        private String nodeId;

        private String id;

        private String title;

        private List<RelatedBid> relatedBids = new ArrayList<>();

        private List<RelatedCooperator> relatedCooperators = new ArrayList<>();
    }

    @Data
    public static class RelatedBid {

        public RelatedBid() {
            nodeId = UUID.randomUUID().toString();
        }

        private String nodeId;

        private String id;

        private String title;

        private String company;

        private String principal;

        private String principalMobile;

        private String source;
    }

    @Data
    public static class RelatedCooperator {

        public RelatedCooperator() {
            nodeId = UUID.randomUUID().toString();
        }

        private String nodeId;

        private String id;

        private String name;

        private String type;

        private String cooperateDate;

        private String project;

        private int contactsCount;
    }
}
